Graph

what is the graph for? § setting up a graph § graph traces § interacting with the graph § altering the axes ranges § data limits § properties § mini-toolbar items

 

Using the part in-scene

What is the graph for?

 

The graph part can be used to measure how quantities in a model vary. Most parts have graphable properties, and the graph is a useful way of communicating information about these properties visually.

 

 

 

 

Setting up a graph

The steps below outline how to create a graph.

 

1. Choosing a part to graph

Before you can draw a graph you must first choose which part (or parts) you are interested in measuring. Any part or link with graphable properties can be graphed.

 

 

To target a particular part:

 

  1. Click on the target image and drag the target line to the part.

 

  1. When the cursor is over a part with which the graph part can associate, the target line will go from dashed to solid and the cursor will change to a target.

 

  1. Release the mouse button when the desired part has been targeted. The standard icon of the newly associated part will appear instead of the target image on the target tool.

 

 

2. Setting the y-axis value

The property measured on the y-axis is set using the property picker that appears just above it. Click on the underlined word 'Property' and chose the property to be measured from the list that appears.

 

  • If one or more traces have already been set up, the list will include all the graphable properties of the parts that have been targeted.

  • If no traces have been set up, the list will include all the graphable properties of all the parts in the scene.

 

If one of the parts to be traced does not have the chosen property, the trace target tool will be highlighted in red and no trace will appear.

 

 

 

3. Setting the x-axis

By default the x-axis is set to represent simulation time (a 'Global' property since it a property of the scenes).

 

 

However, there are three property categories that can be represented by the x-axis:

 

      • Global properties

      • Local part properties

      • Specific part properties

 

Click on the arrow next to the property picker to choose the property category:

 

 

 

  • Global property

A global property is one that does not relate to any part in the scene, but belongs to the scene itself. If this option is chosen, all the global scene properties will be listed in the property picker. Time is currently the only global property.

 

  • Local part property

A local part property is one that belongs to each part being graphed.

 

Graphing against a local part property will result in each part targeted for a  trace being graphed against its own value of the property.

 

For example, if two traces have been set up to graph beaker A and beaker B, the y-axis has been set to measure mass of solid, and the x-axis set to measure (local part property) temperature, then the graph will display the following two traces:

 

  • mass of solid in beaker A against the temperature of beaker A

  • mass of solid in beaker B against the temperature of beaker B

 

Again, If at any time the property chosen does not exist for one of the traces, the trace target tool will be highlighted in red and no trace will appear.

 

  • Specific part property

A specific part property is one that belongs to a targeted part.

When this option is chosen a target tool appears next to the property picker so that traces can be plotted against a specific part's property values.

 

 

For example, you may wish to graph the level of a burette against the pH in a beaker. To do this:

    1. Target the beaker using the target tool by the y-axis.

    2. Set the y-axis property to pH.

    3. Next, set the property category on the x-axis to Specific.

    4. Target the burette using the target tool and set the property to Burette level.

 

 

 

Graph traces

The graph part can display up to four traces at any one time. Hence four part properties can be investigated simultaneously.

Each trace has a simple target tool that is displayed to the left of the y-axis (though by default the graph part only has one target tool visible). Next to the target tool is a colour indicator that shows the colour of the trace on the graph.

 

Adding a trace

To add a trace to the graph:

  1. Select the graph and open its property pane.

  2. In the Traces section, click on a trace in the list and check the Show trace option.

 

Customising traces

Each trace on the graph can be customised. These options, that include colour and line style, can be found in the Traces section of the graph property pane.

 

Restarting the traces

Clear the graph and restart all of the traces on the graph by pressing the restart button.

 

 

 

 

 

Interacting with the graph

There are several ways of interacting with the graph part to investigate the data that has been traced.

 

 

  • Pan

Panning can be used to look at areas on the graph outside the visible range. Pan the display in any direction by clicking and dragging anywhere on the graph grid.

 

 

  •  Fit to x-axis  

To fit (show) all the data that has been collected by the graph for values on the x-axis, press the fit to x-axis button on the graph which appears when the cursor is over the graph part. This will re-scale the x-axis until all the relevant data can be seen.

 

 

  •  Fit to y-axis  

To fit (show) all the data that has been collected by the graph for values on the y-axis, press the fit to y-axis button on the graph which appears when the cursor is over the graph part. This will re-scale the y-axis until all the relevant data can be seen.

 

  •  Zoom in and Zoom out  

Zooming can be used to focus on particular areas of a graph. The zoom buttons appear when the cursor is over the graph part

 

Press the zoom in button on the graph to make everything on the graph appear larger. Each time the button is pressed, the graph is enlarged by 10%.

 

Press the zoom out button on the graph to make everything on the graph appear smaller. Each time the button is pressed, the graph is reduced by 10%.

 

  •  Restart  

Use this button to restart the graph. When pressed, all existing data (traces) will be removed from the graph and restarted.

 

 

 

 

Altering axes ranges

 

The x- and y-axis ranges can be set in the X-axis and Y-axis sections in the graph's Properties pane. The units used on each axis can also be set there.

 

 

 

 

Data limits

 

There is a limit to the amount of data that can be displayed on the graph at any one time. This limit is 10000 data points (individual points plotted on the graph) by default. This equates to the graph plotting data for approximately 10 minutes before restarting. The data limit can be set in the Advanced section of the graph control pane. Please note, If this limit is set to a very large value , the speed of the graph simulation may slow down significantly.

 

If the amount of data on the graph exceeds this limit, then only the most recent 10000 points will be stored.

 

 

 

 

Properties

The following properties can be found in the Properties pane when the part is selected.

 

Traces

  • Trace list

The four possible graph traces are listed here. Click on any of the traces in the list to select and use the options detailed below to customise it.

 

  • Show trace

Use this option to turn the display of the selected trace on and off. When the option is checked, a target tool and a trace will appear by the graph.

 

  • Colour

Use this option to change the colour of the selected trace.

 

  • Style

Use this option to change the style of the selected trace. Choose from lines, lines & points and points.

 

  • Line weight

Use this option to change the thickness of the selected trace.

 

  • Point size

Use this option to change the size of the points on the selected trace.

 

Y-axis

  • Range

To change the y-axis range, enter new values in the max and min fields (or use the arrow buttons to increase/decrease the values).

 

The unit can be changed by clicking on the underlined unit and choosing the required option.

 

  • Gridlines

The gridlines on a graph can be configured. The frequency of the major gridlines can be set and the display of the minor gridlines can be turned on and off. (The number of minor gridlines between two major gridlines is set automatically).

 

X-axis

  • Measure

This control duplicates the control on the x-axis on the graph part. It is used to chose the property type to graph:

  • Local part property

  • Global property

  • Specific part property

  • Range

To change the x-axis range, enter new values in the max and min fields (or use the arrow buttons to increase/decrease the values).

 

The unit can be changed by clicking on the underlined unit and choosing the required option.

 

  • Gridlines

The gridlines on a graph can be configured. The frequency of the major gridlines can be set and the display of the minor gridlines can be turned on and off. (The number of minor gridlines between two major gridlines is set automatically).

 

Visual settings

  • Major gridlines

Use this option to change the colour of the major gridlines.

 

  • Major gridlines

Use this option to change the colour of the minor gridlines.

 

  • x-axis

Use this option to change the colour of the x-axis.

 

  • y-axis

Use this option to change the colour of they-axis.

 

Advanced

  • Data limit

Set the data limit - the maximum number of data points the graph stores before it restarts. If this limit is very large, the speed of the graph simulation may slow down significantly.

 

 

Mini-toolbar Items

The mini-toolbar appears alongside this part when the cursor moves over it.  The following mini-toolbar items are available for this part:

 

 

 

Drag area  

 

 

Click and drag on this area to move the part.

 

 

Fit to x-axis    

 

Use this button to fit (show) all the data that has been collected by the graph for values on the x-axis

 

 

Fit to y-axis  

 

Use this button to fit (show) all the data that has been collected by the graph for values on the y-axis

 

 

Zoom in

 

Press the zoom in button on the graph to make everything on the graph appear larger. Each time the button is pressed, the graph is enlarged by 10%.

 

 

Zoom out

 

Press the zoom out button on the graph to make everything on the graph appear smaller. Each time the button is pressed, the graph is reduced by 10%.

 

 

Restart  

 

Use this button to restart the graph. When pressed, all existing data (traces) will be removed from the graph and restarted.

 

 

Shortcut menu

 

Use this button to open the part's shortcut menu.

 

 

 

 

Related Topics